import * as echarts from "echarts";

export default {
  name: "MyCharts",
  props: {},
  methods: {
    getApi() {
      return echarts
    }
  },
  render() {
    let defaultSlotContent =
      typeof this.$scopedSlots.default == "function"
        ? this.$scopedSlots.default({
          echarts: echarts,
        })
        : "默认的MyCharts";

    return (
      <div class="my-charts">
        {defaultSlotContent}
      </div>
    );
  }
}